home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / PPPMonitor1.16 / Source / ExecMonitor.h < prev    next >
Text File  |  1996-02-28  |  2KB  |  77 lines

  1. // -------------------------------------------------------------------------------------
  2. // ExecMonitor.h
  3. // (Indent:4, Tabs:4)
  4. // -------------------------------------------------------------------------------------
  5. // Copyright 1996 Persistent Technologies, Inc. - all rights reserved
  6. // -------------------------------------------------------------------------------------
  7. // This source code comes with no warranty of any kind, and the user assumes all 
  8. // responsibility for its use.
  9. // -------------------------------------------------------------------------------------
  10. #import <objc/Object.h>
  11. #import <appkit/graphics.h>
  12.  
  13. // -------------------------------------------------------------------------------------
  14. @interface ExecMonitor : Object
  15. {
  16.  
  17.     /* monitor */
  18.     id            exeWindow;
  19.     id            btnConnect;
  20.     id            autoConnect;
  21.     id            btnGetMail;
  22.     id            appMatrix;
  23.     id            cmdMessage;
  24.     id            pingMessage;
  25.     id            cmdShellScroll;
  26.     id            pppLogScroll;
  27.     
  28.     /* exec ids */
  29.     id            pingExeId;
  30.     id            connectExeId;
  31.     id            pppLogExeId;
  32.     
  33.     /* connect timer */
  34.     long        _connectTime;
  35.     long        _connectStart;
  36.     int            _showTileTime;
  37.  
  38.     /* timers */
  39.     void        *clockTimer;
  40.     void        *ppingTimer;
  41.     void        *checkTimer;
  42.     void        *pppdTimer;
  43.  
  44.     /* run flags */
  45.     BOOL        _alreadyConnected;
  46.     BOOL        _isConnected;
  47.     BOOL        _isDisconnecting;
  48.     BOOL        _shutDown;
  49.     id            textFont;
  50.     
  51. }
  52.  
  53. // -------------------------------------------------------------------------------------
  54.  
  55. + (void)updateFromDefaults;
  56. - (void)updateFromDefaults;
  57.  
  58. + (id)sharedPPPMonitor;
  59. + (BOOL)shutDown;
  60. + (BOOL)canShutDown;
  61. - (BOOL)isShuttingDown;
  62. - (BOOL)canShutDown;
  63.  
  64. - (BOOL)isPPPDRunning;
  65. - (BOOL)isReallyConnected;
  66. - (BOOL)isPPPDriverLoaded;
  67. - (void)enableConnectButton:(id)doDelay;
  68.  
  69. - (void)tailLogFile:(id)sender;
  70. - (void)clearLog:(id)sender;
  71.  
  72. - (void)commandDidComplete:execId withError:(int)err;
  73.  
  74. + terminalCommand:(const char*)cmd title:(const char*)title;
  75.  
  76. @end
  77.